<?php
/**
 * @file
 * The home page for GreenInDeed.
 *
 * Usage:
 *  - A hyperlink for users to use GreenInDeed should link to this page.
 *
 * Parameter(s):
 *  - None.
 *
 * GET Parameter(s):
 *  - See 'js_params_get.php'.
 *
 * Global variable(s) set:
 *  - None.
 *
 * Global variable(s) unset:
 *  - None.
 *
 * Exception(s):
 *  - None.
 *
 * This file includes/requires:
 *  - h_greenindeed.php
 *  - h_home.php
 *  - js_params_get.php
 *  - fb_iframe_resize_div.php
 *  - fb_js_feature_loader.php
 *  - header.php
 *  - [ all files defined in $INFO_SECTION ]
 */

// header file(s) ==============================================================
require_once "h_greenindeed.php";
require_once "h_home.php";


// implementation ==============================================================
// for forwarding information to javascript
$js_param = PARAM_LOCALE . "=" . $locale_user;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><?php echo APP_NAME ?></title>
    <link type="text/css" href="<?php echo CSS_JQUERY_UI ?>" rel="stylesheet" />
    <link type="text/css" href="<?php echo CSS_COMMON ?>" rel="stylesheet" />
    <link type="text/css" href="<?php echo CSS_JQUI ?>" rel="stylesheet" />
    <link type="text/css" href="css_greenindeed.css.php" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo JS_JQUERY ?>"></script>
    <script type="text/javascript" src="<?php echo JS_JQUERY_UI ?>"></script>
    <script type="text/javascript" src="<?php echo JS_COMMON_UTIL ?>"></script>
    <script type="text/javascript" src="<?php echo JS_COMMON_AJAX ?>"></script>
    <?php require_once $PATH_COMMON . "php/js_params_get.php"; ?>
    <script type="text/javascript" 
            src="js_deed.js.php?<?php echo $js_param ?>">
    </script>
    <script type="text/javascript" 
            src="js_filter.js.php?<?php echo $js_param ?>">
    </script>
    <script type="text/javascript" 
            src="js_header.js.php?<?php echo $js_param ?>">
    </script>
    <script type="text/javascript"
            src="js_greenindeed.js.php?<?php echo $js_param ?>">
    </script>
  </head>
  <body>
    <?php require_once $PATH_COMMON . "php/fb_iframe_resize_div.php" ?>
    <?php require_once $PATH_COMMON . "php/fb_js_feature_loader.php" ?>
    <?php include "header.php" ?>
    <div class="<?php echo CSS_GROUP_ACCORDION ?>">
      <?php foreach ($INFO_SECTION as $info_section) { ?>
      <div>
        <?php // accordian header ?>
        <h3 class="<?php echo CSS_CLASS_ACCORDION . " "
                              . CSS_GROUP_ACCORDION_HEAD ?>"
        >
          <a href="#"><?php echo $info_section[SECTION_INDEX_HEADING] ?></a>
        </h3>
        <?php // accordian content ?>
        <div class="<?php echo CSS_GROUP_ACCORDION_CONTENT ?>">
          <?php include $info_section[SECTION_INDEX_FILE] ?>
        </div>
      </div>
      <?php } ?>
    </div>
  </body>
</html>
